package Reflex.secondStudy;

public class User {
    private String name;
    private Integer age;
    public String nameAlias;

    public final static String INTER = "AAA";

    public static void main(String[] args) {
        System.out.println(User.INTER);
    }

    public User() {
    }

    public User(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    //静态方法
    public static void staticMethod(String nameAlias){
        System.out.println( nameAlias +" 执行了静态方法");
    }

    //私有方法
    private void privateMethod(String nameAlias){
        System.out.println(nameAlias + "执行了私有方法");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", nameAlias='" + nameAlias + '\'' +
                '}';
    }
}
